# 操作步骤
import time


from selenium import webdriver
from selenium.webdriver.chrome.service import Service

# 1.创建浏览器驱动对象
chrome_path="../driver/chromedriver.exe"
service=Service(executable_path=chrome_path)
driver=webdriver.Chrome(service= service)

# 2.通过get方法获取网页
driver.get("https://www.baidu.com")
# 3.操作页面的元素，比如输入 点击 双击 鼠标的移动等等
time.sleep(5)
# 4.关闭浏览器对象
driver.quit()